package _3装饰器模式.io的应用;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;

public class Application {

    public static void main(String[] args) {
        ReadEnglishWord englishWord = new ReadEnglishWord();
        WordDecorator wordDecorator = new WordDecorator(englishWord, new File("src/_3装饰器模式/io的应用/chinese.txt"));
        ArrayList<String> wordList = wordDecorator.readWord(new File("src/_3装饰器模式/io的应用/english.txt"));
        wordList.forEach(System.out::println);

    }
}
